package xin.marcher.module.seller.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.marcher.module.common.core.JsonResult;
import xin.marcher.module.seller.api.SellerAbilityApi;
import xin.marcher.module.seller.domain.request.SellerInfoRequest;
import xin.marcher.module.seller.domain.response.SellerInfoResponse;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@RestController
@RequestMapping("/forJmeter")
public class ForJmeterController {

    @Resource
    private SellerAbilityApi sellerAbilityApi;


    @PostMapping("/getSellerInfo")
    public JsonResult<List<SellerInfoResponse>> getSellerInfo(@RequestBody SellerInfoRequest sellerInfoRequest) {
        return sellerAbilityApi.getSellerInfo(sellerInfoRequest);
    }

}
